/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author hafiz anshori
 */
@Entity
@Table(name = "daftar_member", catalog = "sirere", schema = "")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "DaftarMember.findAll", query = "SELECT d FROM DaftarMember d"),
    @NamedQuery(name = "DaftarMember.findById", query = "SELECT d FROM DaftarMember d WHERE d.id = :id"),
    @NamedQuery(name = "DaftarMember.findByUsername", query = "SELECT d FROM DaftarMember d WHERE d.username = :username"),
    @NamedQuery(name = "DaftarMember.findByPassword", query = "SELECT d FROM DaftarMember d WHERE d.password = :password"),
    @NamedQuery(name = "DaftarMember.findByNamaDepan", query = "SELECT d FROM DaftarMember d WHERE d.namaDepan = :namaDepan"),
    @NamedQuery(name = "DaftarMember.findByNamaBelakang", query = "SELECT d FROM DaftarMember d WHERE d.namaBelakang = :namaBelakang"),
    @NamedQuery(name = "DaftarMember.findByNamaPanggil", query = "SELECT d FROM DaftarMember d WHERE d.namaPanggil = :namaPanggil"),
    @NamedQuery(name = "DaftarMember.findByStatus", query = "SELECT d FROM DaftarMember d WHERE d.status = :status"),
    @NamedQuery(name = "DaftarMember.findByAlamat", query = "SELECT d FROM DaftarMember d WHERE d.alamat = :alamat"),
    @NamedQuery(name = "DaftarMember.findByKota", query = "SELECT d FROM DaftarMember d WHERE d.kota = :kota"),
    @NamedQuery(name = "DaftarMember.findByProvinsi", query = "SELECT d FROM DaftarMember d WHERE d.provinsi = :provinsi"),
    @NamedQuery(name = "DaftarMember.findByKodepos", query = "SELECT d FROM DaftarMember d WHERE d.kodepos = :kodepos"),
    @NamedQuery(name = "DaftarMember.findByTeleponHp", query = "SELECT d FROM DaftarMember d WHERE d.teleponHp = :teleponHp"),
    @NamedQuery(name = "DaftarMember.findByEmail", query = "SELECT d FROM DaftarMember d WHERE d.email = :email")})
public class DaftarMember implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id", nullable = false)
    private Integer id;
    @Basic(optional = false)
    @Column(name = "username", nullable = false, length = 15)
    private String username;
    @Basic(optional = false)
    @Column(name = "password", nullable = false, length = 10)
    private String password;
    @Basic(optional = false)
    @Column(name = "nama_depan", nullable = false, length = 20)
    private String namaDepan;
    @Basic(optional = false)
    @Column(name = "nama_belakang", nullable = false, length = 20)
    private String namaBelakang;
    @Basic(optional = false)
    @Column(name = "nama_panggil", nullable = false, length = 10)
    private String namaPanggil;
    @Basic(optional = false)
    @Column(name = "status", nullable = false, length = 1)
    private String status;
    @Basic(optional = false)
    @Column(name = "alamat", nullable = false, length = 140)
    private String alamat;
    @Basic(optional = false)
    @Column(name = "kota", nullable = false, length = 15)
    private String kota;
    @Basic(optional = false)
    @Column(name = "provinsi", nullable = false, length = 20)
    private String provinsi;
    @Basic(optional = false)
    @Column(name = "kodepos", nullable = false, length = 6)
    private String kodepos;
    @Basic(optional = false)
    @Column(name = "telepon_hp", nullable = false, length = 15)
    private String teleponHp;
    @Basic(optional = false)
    @Column(name = "email", nullable = false, length = 25)
    private String email;

    public DaftarMember() {
    }

    public DaftarMember(Integer id) {
        this.id = id;
    }

    public DaftarMember(Integer id, String username, String password, String namaDepan, String namaBelakang, String namaPanggil, String status, String alamat, String kota, String provinsi, String kodepos, String teleponHp, String email) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.namaDepan = namaDepan;
        this.namaBelakang = namaBelakang;
        this.namaPanggil = namaPanggil;
        this.status = status;
        this.alamat = alamat;
        this.kota = kota;
        this.provinsi = provinsi;
        this.kodepos = kodepos;
        this.teleponHp = teleponHp;
        this.email = email;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNamaDepan() {
        return namaDepan;
    }

    public void setNamaDepan(String namaDepan) {
        this.namaDepan = namaDepan;
    }

    public String getNamaBelakang() {
        return namaBelakang;
    }

    public void setNamaBelakang(String namaBelakang) {
        this.namaBelakang = namaBelakang;
    }

    public String getNamaPanggil() {
        return namaPanggil;
    }

    public void setNamaPanggil(String namaPanggil) {
        this.namaPanggil = namaPanggil;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAlamat() {
        return alamat;
    }

    public void setAlamat(String alamat) {
        this.alamat = alamat;
    }

    public String getKota() {
        return kota;
    }

    public void setKota(String kota) {
        this.kota = kota;
    }

    public String getProvinsi() {
        return provinsi;
    }

    public void setProvinsi(String provinsi) {
        this.provinsi = provinsi;
    }

    public String getKodepos() {
        return kodepos;
    }

    public void setKodepos(String kodepos) {
        this.kodepos = kodepos;
    }

    public String getTeleponHp() {
        return teleponHp;
    }

    public void setTeleponHp(String teleponHp) {
        this.teleponHp = teleponHp;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DaftarMember)) {
            return false;
        }
        DaftarMember other = (DaftarMember) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.DaftarMember[ id=" + id + " ]";
    }
}
